import http from '@/utils'

class Login {
    // 登录   参数 username password
    login(reload) {
        let url = '/login/index';
        return http.post(url, reload)
    }

    // 获取pt测试页面的token
    getptToken(reload) {
      let url = 'login/getpttoken'
      return http.get(url, reload)
    }
}

export default new Login()